# Contributor: Maxim Karasev <mxkrsv@disroot.org>
# Maintainer: Maxim Karasev <mxkrsv@disroot.org>
pkgname=nvim-cmp-path
pkgver=0.0.0_git20221002
_commit=1267fcfe8845f547b6d88d9a857859fb442fde6a
pkgrel=0
pkgdesc="nvim-cmp source for path"
url="https://github.com/hrsh7th/cmp-path"
arch="noarch"
license="MIT"
subpackages="$pkgname-doc"
depends="nvim-cmp"
source="https://github.com/hrsh7th/cmp-path/archive/$_commit/nvim-cmp-$pkgver.tar.gz"
builddir="$srcdir/cmp-path-$_commit"
options="!check" # no tests

package() {
	install -d "$pkgdir"/usr/share/nvim/site
	cp -ra after lua "$pkgdir"/usr/share/nvim/site
	install -Dm644 README.md "$pkgdir"/usr/share/doc/$pkgname/README.md
}

sha512sums="
eaf14f5ede9e53bbb3aae7a0430277f2b42c6012248edb007ce3fec0684dffb4c0d9af4a04f7395299a92ba2cae66cdd3307f2e54c696f7b68b85aec18a76d00  nvim-cmp-0.0.0_git20221002.tar.gz
"
